const ReadStream = require('../input/sqlserverReader.js');
(async function () {
    let reader = await ReadStream({
        user: 'shanghaifufan',
        password: 'hZ7f2NIkA#&UaByp#9Ud',
        server: '128.0.16.160',
        database: 'HDC_ADT',
        table: 'ADT_IP_Encounter'
    });

    reader.on("data", data => {
        console.log("====", data);
    });

    reader.on("end", function() {
        console.log("done");
    });
})()
